﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectGioiThieuCongTy
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	<span class="AdminTitle" style="color:#cc0000;">Thông tin công ty</span>
	(<a href="<%= Url.Action("Index", "Home") %>" class="AdminPageText">
	<%= WebConfiguration.SiteName  %>
	</a>)
	<br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
	<script type="text/javascript">
		<% if (Model.GioiThieuCongTyModel.InfoText != null && Model.GioiThieuCongTyModel.InfoText != ""){ %>
			alert('<%= Model.GioiThieuCongTyModel.InfoText %>');
		<% } %>
	</script>
	<div id="PartialDiv">
		<% Html.RenderPartial("Templates/TH_ListGioiThieuCongTy", Model); %>
	</div>
    <% if (Model.GioiThieuCongTyModel.GetModel.LstObjModel.Count == 0)
       { %>
        <script src="../../Scripts/fckeditor/fckeditor.js" type="text/javascript"></script>
	    <script type="text/javascript">
	        window.onload = function () {
	            var objFckEditor = new FCKeditor('GioiThieuCongTy_GioiThieu');
	            objFckEditor.BasePath = '<%= ResolveUrl("~/Scripts/fckeditor/")%>';
	            objFckEditor.Height = 480;
	            objFckEditor.Width = 600;
	            objFckEditor.ToolbarSet = 'TemplateWeb.MyToolbar';
	            objFckEditor.ReplaceTextarea();
	        }
	    </script>
	    <% using (Html.BeginForm("InsertGioiThieuCongTy", "Admin", FormMethod.Post, new { enctype = "multipart/form-data", onsubmit = "return ValidateGioiThieuCongTy();" }))
        { %>
		    <div style="padding-top: 40px">
			    <span style="font-size:18px; font-weight:bold;">Cập nhật thông tin</span>
			    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				    <tbody>
					    <tr>
						    <td>
							    <div align="left" style="padding-top:15px">
								    <font class="normal8">GioiThieu: </font>
							    </div>
						    </td>
						    <td height="20">
							    <div align="left" style="padding-top:15px">
								    <%= Html.TextArea("GioiThieuCongTy_GioiThieu")%>
							    </div>
						    </td>
					    </tr>
					    <tr>
						    <td>
							    <div align="left" style="padding-top:15px">
								    <font class="normal8">GioiThieuRutGon: </font>
							    </div>
						    </td>
						    <td height="20">
							    <div align="left" style="padding-top:15px">
								    <textarea name="GioiThieuCongTy_GioiThieuRutGon" style="width: 590px; height: 80px;"></textarea>
							    </div>
						    </td>
					    </tr>
                        <tr>
						    <td>
							    <div align="left" style="padding-top:15px">
								    <font class="normal8">DiaChi: </font>
							    </div>
						    </td>
						    <td height="20">
							    <div align="left" style="padding-top:15px">
								    <%= Html.TextBox("GioiThieuCongTy_DiaChi", "", new { @style = "width: 590px;" })%>
							    </div>
						    </td>
					    </tr>
					    <tr>
						    <td>
							    <div align="left" style="padding-top:15px">
								    <font class="normal8">DienThoai: </font>
							    </div>
						    </td>
						    <td height="20">
							    <div align="left" style="padding-top:15px">
								    <%= Html.TextBox("GioiThieuCongTy_DienThoai", "", new { @style = "width: 590px;" })%>
							    </div>
						    </td>
					    </tr>
					    <tr>
						    <td>
							    <div align="left" style="padding-top:15px">
								    <font class="normal8">Logo: </font>
							    </div>
						    </td>
						    <td height="20">
							    <div align="left" style="padding-top:15px">
								    <input type="file" name="GioiThieuCongTy_Logo" />
							    </div>
						    </td>
					    </tr>
					    <tr>
						    <td height="20" style="width: 130px">
						    </td>
						    <td height="20">
							    <div align="left">
								    <br/>
								    <p>
									    <input type="submit" value="Add New" />
								    </p>
							    </div>
						    </td>
					    </tr>
				    </tbody>
			    </table>
		    </div>
	    <% } %>
    <% } %>
</asp:Content>
